def paixu(d_list):
    for i in range(0, len(d_list)):
        for j in range(i+1, len(d_list)):
            if d_list[i] >= d_list[j]:
                tmp = d_list[i]
                d_list[i] = d_list[j]
                d_list[j] = tmp
    print(d_list)


li = [32, 23, 65, 32, 76, 79, 56, 89, 12]
paixu(li)